package com.example.community.service;

import com.example.community.dao.pojo.User;
import org.springframework.security.core.GrantedAuthority;

import java.util.List;

public interface UserService {
    User findUserById(int UserId);

    User findUserByUsername(String username);

    User findUserByEmail(String email);

    void insertUser(User user);

    void updateActivationCode(int userId, int i);


    void updateHeader(int userId, String headerUrl);

    void clearCache(int userId);

    List<? extends GrantedAuthority> getAuthorities(int userId);
}
